package com.atguigu.yygh.user.client;

import com.atguigu.yygh.model.user.Patient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * ClassName: PatientFeignClient
 * Package: com.atguigu.yygh.user.client
 * Description:
 *
 * @Author: cqk
 * @Create: 2023/10/1 - 16:51
 * @Version: v1.0
 */
@FeignClient(value = "service-user")
public interface PatientFeignClient {

    @GetMapping("/user/userinfo/patient/{patientId}")
    public Patient getPatientById(@PathVariable(value = "patientId") Long patientId);
}
